import org.omg.CORBA.StringHolder;

class Person implements Cloneable{
    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
public class Main {
//    public static void main(String[] args) {
//        try{
//            F();
//        }catch (CloneNotSupportedException a){
//            throw new RuntimeException("捕获到了算数异常");
//        }
//    }
//    public static void F()throws CloneNotSupportedException{
//        int a = 10;
//        if(a == 10){
//            throw new CloneNotSupportedException("a == 10");
//        }
//    }

    public static void test(){
        int a = 10/0;
    }
//    public static void main(String[] args) {
////        try{
////            System.out.println("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
//////            test();
////            int[] arr = null;
////            System.out.println(arr.length);
////
////        }catch (ArithmeticException a){
////            a.printStackTrace();
////            System.out.println("捕获到了算数异常");
////        }
//       int a = F();
//
//        System.out.println(a);
//
//        System.out.println("其它业务代码");
//    }
    public static void F(){
       int a = 0;
        System.out.println(10/a);
    }

    public static void main(String[] args) {
        try{
            F();
        }catch (ArithmeticException e){
            System.out.println("抛出了一个异常");
        }
    }

}